﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;

namespace Aplicacao
{
    public class BancoDeDados
    {
        #region propriedades
        private string stringDeConexao {
            get {
                return System.Configuration.ConfigurationManager.ConnectionStrings["ApplicationServices"].ToString();
            }
        }
        #endregion

        #region construtores
        public SqlConnection iniciaConexao()
        {
            SqlConnection conexao = new SqlConnection(stringDeConexao);
            return conexao;
        }
        #endregion
                
    }
}